package com.feiyu.common.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springblade.core.tool.api.IResultCode;

/**
 * @author tang ming
 * @since 2021/11/29 19:01
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GlobalException extends RuntimeException {
    IResultCode resultCode;
    public GlobalException(IResultCode resultCode){
        super(resultCode.getMessage());
        this.resultCode=resultCode;
    }
    public GlobalException(){
    }
}
